<!--评论删除-->
<?php
$commentId = $_GET['id'];
$conn=new mysqli("localhost","root","123456","htmlkeshe");

//通过用户的id来读取数据库得到所有的新闻
$sql="DELETE from comment where commentId=".$commentId;
$result=$conn->query($sql);
header('Refresh: 0; url=Personal.php');
$conn->close();
?>
<script>
    alert("删除成功")
</script>
